package com.javaclimb.music.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 评论
 */
@Accessors(chain = true)  //链式开发
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment implements Serializable{
    //主键
    private Integer id;
    //用户id
    private Integer userId;
    //评论的类型（0歌曲1歌单）
    private Byte type;
    //歌曲id
    private Integer songId;
    //歌单id
    private Integer songListId;
    //评论内容
    private String content;
    //评论时间
    private Date createTime;
    //评论点赞数
    private Integer up;
}
